<!DOCTYPE html>
<html lang="en" style="font-size: 100px;background-color:#000">
<head>
    <meta charset="UTF-8">
    <title>浏览赚钱</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <meta name="Cache-Control" content="private">
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">

    <link rel="stylesheet" href="/static/home/mobile/css/bootstrap.css">
    <link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
    <link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/mobile/css/style.css?v=21019" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/static/home/mobile/css/new_page.css?v=2" />
    <link rel="stylesheet" href="/static/home/mobile/css/swiper.min.css" />
    <link rel="stylesheet" href="/static/home/mobile/js/index/flexslider.min.css" />
    <link rel="stylesheet" href="/static/home/mobile/js/index/index.css?v=1">
    <link rel="stylesheet" href="/static/plugins/dialog/css/dialog.css" />
    <link rel="stylesheet" href="/static/home/mobile/css/mui.min.css">


    <script src="/static/home/mobile/js/jquery.min.js"></script>
    <script src="/static/home/mobile/js/mui.min.js"></script>
    <link rel="stylesheet" href="/static/home/mobile/js/index/index.css?v=1">
    <style>
        html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img {
            margin: 0;
            padding: 0;
        }
        html{
            font-size: 100px;
        }
        fieldset, img {
            border: none;
        }

        address, caption, cite, code, dfn, th, var {
            font-style: normal;
            font-weight: normal;
        }
        ul, ol {
            list-style: none;
        }
        body {
            font: 12px/20px "微软雅黑", "SimSun", "宋体", "Arial Narrow", HELVETICA;
            overflow-x: hidden;
        }
        i {
            font-style: normal;
        }
        a{
            color: #666;
            text-decoration: none;
        }

        a:link{
            color: #666;
        }

        a:visited {
            color: #666;
        }
        a:hover, a:active, a:focus {
            /*color: #f96a22;*/
            color: #666;
            /*text-decoration: underline;*/
        }
      #footer-bar li b {
    font-weight:normal
}

        a,a:hover,a:active,a:visited,a:link,a:focus{
            -webkit-tap-highlight-color:rgba(0,0,0,0);
            -webkit-tap-highlight-color: transparent;
            outline:none;
            background: none;
            text-decoration: none;
        }

        input {
            outline: none
        }
        
.list-block li{
	padding-left:0px;
	border-bottom: 1px solid #444242;
}        

        button {
            outline: none;
        }
        .header{
            display: flex;
            justify-content: space-between;
            background-color: #f96a22;
            align-items: center;
            width: 100%;
            height: .88rem;
            padding: 0 .24rem;

            box-sizing: border-box;
        }




        .content{
          background-color:white;}
        input::-ms-input-placeholder{
            font-size: 14px;
            color: #999;
        }
        input::-webkit-input-placeholder{
            font-size: 14px;
            color: #999;
        }
      .mui-scroll-wrapper{
        background-color:#000;
        width:95%;
        left:0.1
      }
.list-block li a .subtitle {
    color: #fff;
    font-size: 14px;
    display: block;
    overflow: hidden;
}
        .cueText{
            text-align: center;
            font-size: 14px;
            color: #666;
        }

        #downRefresh{
            width: 100%;
            height: 80vh;
        }

        .hidetr{
            display: none;
        }
        .pull-loading {
            text-align: center;
            height: 40px;
            line-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #scroller ul li {
            padding: 20px 10px;
            border-bottom: solid 1px #ccc;
            background: #fff;
        }
        .hidetr{
            display: none;
        }
        .mui-pull-caption{
            text-align: center;
        }
        .mui-scroll-wrapper{
            top:54px;
            bottom:63px;
            left:0.15rem !important;
        }
        .right input{
            margin-bottom: 7px;
            margin-top: 7px;
        }
      .mui-scrollbar {
                     display: none !important;
        }
        .img-home{
            width: 100%;
            height: auto;
        }
        .span_alink{
            position: relative;
            width: 100%;
            height: 100%;
            background-color: red !important;
            display: block;
            margin: 0 auto;
            vertical-align: middle;
            text-align: center;
            clear: both;
        }
        .span_alink span{
            display: block;
            color: white;
            font-size: 14px;
            line-height: 35px;
            text-align: center;
        }
        .list-id-span{
            color:#999999;
            font-size:14px;
            margin-left: 5px;
          }
          .yellow-new{
            background:#ECF4FF;
            color:#3895FF !important;
            border-color:#ECF4FF !important;
            line-height: 14px;
           
          	
          }
          .blue-new{
          	 line-height: 12px;
            background:#ECF4FF;
            color:#3895FF !important;
         
             border-color:#ECF4FF !important;
          }
          .red-new{
            background:#ffffff !important;
            border-color:#FECB9D !important;
            color:#FE7E24 !important;
          }
          .red-new img{
             width:15px;
             height:15px;
             line-height:18px;
             margin-right:5px;
          }

      .back {
            float: left;
            background: url(/static/home/mobile/images/return.png) no-repeat;
            background-size: 9px 21px;
            margin-top: 20px;
            height: 37px;
            width: 37px;
        }
.list-block li .desc{
	height:40px;
	line-height: 40px;
}
#footer-bar {
    width: 100%;
    background-color: #000;
    position: fixed;
    bottom: 0px;
    height: 54px;
    padding: 0px 0 0 0;
    margin: 0px;
    text-align: center;
    border-top: 1px solid #504c4c;
    z-index: 999;
}
#footer-bar li b {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
    padding-top: 2px;
}
</style>

</head>
<body>

    <div style="background:#000;color:#fff;"  class="site-header header-fixed">
        <div onclick="history.back()" href="#" class="back" style="background:none;margin-top:0px;" >
            <img style="height:24px;" src='/static/home/mobile/login/back.png'>
        </div>
        <div class="tit-name" style="color:#fff;line-height:50px;">浏览赚钱
                
        </div>

    </div>

<script>

var page=2;

</script>


<div class="content" id="wrapper">

  <div class="clear"></div>
    {if !empty($tasks)}
    <div class="list-block">
        <div  class="mui-content mui-scroll-wrapper" id="pullrefresh" style="left:0.1">
            <div class="mui-scroll">
        <ul id="lists" style="clear:both;height:80px;">
            {volist name="tasks" id="task" key="k"}
            <li  style="height:82px;">
            
                <a href="/home/task/detail/id/{$task['id']}.html?xapp-target=blank" class="title">

                    <div class="subtitle" style="font-size: 16px;margin-top:4px;">
                    	<span style="display:inline-block;border:1px solid #2f62ff;border-radius:4px;color:#2f62ff;font-size:12px;height:24px;line-height:24px;width:70px;text-align:center;">浏览任务</span>
                    	{$task['title']}<!--<span class="list-id-span">编号：{$task['id']}--></span>
                    </div>
                    <div class="money" style="color:#2f62ff;font-size: 12px;background:#292726;padding:2px 6px;">剩余{$task['left']}个
                    </div>
                    
                    
                 <div class="desc" >
                      <span style="color:#FF6B04;display:block;float:left;"> <i style="font-size:30px;"> {$task['money']|abs}</i>元/次</span>　
                 {if $task['is_get']}
                 	<div style="line-height:40px;float:right;color:#fff;color:#fff;background:#252523;border-radius:40px;font-size:16px;width:100px;text-align:center;">已浏览</div>
                 {else/}
                	<div style="line-height:40px;float:right;color:#fff;background:#2f62ff;border-radius:40px;width:100px;text-align:center;font-size:16px;">开始浏览</div>
                  </div>
                {/if}
      
                
                </a>
            </li>
            {/volist}
        </ul>
    </div>
        </div>
    </div>
    <div class="clear"></div>
    {/if}
</div>
{include file='common/ufooter'}
<script>

  mui('body').on('tap','a',function(){document.location.href=this.href;});
    mui.init({
        pullRefresh: {
            container: '#pullrefresh',
            down: {
                 callback: pulldownRefresh
            },
            up: {
                 contentnomore:'没 有 更 多 数 据 了',
                contentrefresh: '正在加载...',
                callback: pullupRefresh
            }
        },
    });

    var count = 0;
    /**
     * 上拉加载具体业务实现
     */

    function pullupRefresh() {

               $.get('/home/task/see/page/'+page, function(res){

                    if(res){
                        page+=1;
                        $('#lists').append(res)
                        mui('#pullrefresh').pullRefresh().endPullupToRefresh();
                        if($('.zh-tab-tit').find('li').length>7){
                        
                        //	$('.top-task2').hide()
                        }
                    }else{
                        mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
                    //    mui('#pullrefresh').pullRefresh().endPulldown();
                    }
                    
               })
    }


    function pulldownRefresh(){
    			$('.top-task2').hide()
                $('#lists').html('')
                $('.mui-scroll').css('transform',"translate3d(0px, 0px, 0px) translateZ(0px)")
            $.get('/home/task/see/page/1/', function(res){
					$('.top-task2').show()
                if(res){
                    page=2;
                    $('#lists').html(res)
                    

                    mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); //完成刷新
                }else{

                }

      　			document.getElementById('lists').scrollTop = 0;

               })
    }
</script>
<script>
    (function (doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
            recalc = function () {
                var clientWidth = docEl.clientWidth;
                if (!clientWidth) return;
                if(clientWidth>=640){
                    docEl.style.fontSize = '100px';
                }else{
                    docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
                }
            };
        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);
</script>



</body>
</html>